package com.kucai.yifaqapp.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.kucai.yifaqapp.presenter.fragment.BaseFragmentPresenter;
import com.kucai.yifaqapp.ui.view.IBaseView;

import javax.inject.Inject;

/**
 * Created by Administrator on 2017/8/4.
 * Fragment基类
 * 绑定Presenter
 *
 * @param <T>
 */

public abstract class BaseFragment<T extends BaseFragmentPresenter> extends BaseFragmentSimple implements IBaseView {
    @Inject
    protected
    T mPresenter;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getActivity().getWindow().setBackgroundDrawable(null);
        initDagger();
    }

    /**
     * 初始化Dagger
     */
    protected abstract void initDagger();
}
